package com.rttmall.shopbackend.app.gambling.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.rttmall.shopbackend.app.gambling.pojo.Category;
import com.rttmall.shopbackend.app.gambling.pojo.Product;
import com.rttmall.shopbackend.app.gambling.pojo.ProductCustom;

public interface ProductCustomMapper {

	List<ProductCustom> queryProduct(ProductCustom productCustom);

	int queryProductCount(ProductCustom productCustom);

	void insertSelective(Product product);

	List<Product> queryProductList(List<Integer> productIdList);

	void batchEditProductStatus(@Param("list")List<Integer> productIdList,@Param("status")Integer status);

	List<ProductCustom> batchQueryProductAndMaxPeriod(List<Integer> list);

	List<Category> findAllCategory();

	List<Product> queryVirtualProduct(String keyText);

	List<Integer> queryProductByIds(List<Integer> collect);
    
}